#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_kargs.py
# author:Jackiex
# datetime:2023/4/20 14:10
# software: PyCharm

"""
  可以将参数封装成字典，传给函数体
"""


def print_score(**kw):
    print('----- name      Score_____')
    # print("-"*20)
    for name, score in kw.items():
        print('%10s        %d' % (name, score))


data = {
    'Lisa S': 88,
    'Adam Lee': 99,
    'F.Bart': 77,
    'Jacke': 90

}

data_sorted = sorted(data.items(),key=lambda x:x[1],reverse=False)



# print_score(**data)
